package zmj.myspmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

//@RestController
//@ResponseBody
@Controller
//@RequestMapping("/sp")
public class SpController {
    //    @GetMapping("/index")
    @RequestMapping("/index")
    public String a() {
        System.out.println("aaaaaa");
        return "index";
//                "hello world!";
    }

    @RequestMapping("/ss")
    public String b(ModelMap model) {
        System.out.println("bbbbbbbb");
        model.put("name", "首页啊");
        return "index";
    }


}
